#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
	int a,b,cnt = 0;
	scanf("%d %d",&a,&b);
	while(a<=b)
	{
		a = a*3;
		b = b*2;
		cnt++;
	}
	printf("%d\n",cnt);
}
